home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / xhost < prev    next >
Encoding:
Text File  |  2010-11-16  |  448 b   |  26 lines

  1. # xhost(1) completion
  2.  
  3. have xhost &&
  4. _xhost ()
  5. {
  6.     local cur
  7.     _get_comp_words_by_ref cur
  8.  
  9.     case $cur in
  10.         +*) _known_hosts_real -p+ "${cur:1}" ;;
  11.         -*) _known_hosts_real -p- "${cur:1}" ;;
  12.         *)  _known_hosts_real "$cur" ;;
  13.     esac
  14.  
  15.     return 0
  16. } &&
  17. complete -F _xhost xhost
  18.  
  19. # Local variables:
  20. # mode: shell-script
  21. # sh-basic-offset: 4
  22. # sh-indent-comment: t
  23. # indent-tabs-mode: nil
  24. # End:
  25. # ex: ts=4 sw=4 et filetype=sh
  26.